
<!-- header -->
<div class="breadcrumb">
	<%= link_to @sprint.team.name, @sprint.team %>
	>>
	<span><%= @sprint.goal %></span>
</div>



<!-- column-1 -->
<div class="span-12">
	<span class="">(<%= @sprint.created_at %> ~ <%= @sprint.ends_at %>)</span>
	<%= link_to 'Edit', edit_sprint_path(@sprint) %>
	<br />
	<p class="goal">
		<strong>Goal:</strong> <%= @sprint.goal %>
	</p>

	<!-- teamm members -->
	<!--
	<h3>Impedimentos.</h3>
	<table>
		<tr>
			<th>Impedimentos</th>
			<th></th>
		</tr>
		<% for i in 1..4 do %>
		<tr>
			<td>Blablablablab</td>
			<td>aberto a 3h</td>
		</tr>
		<% end %>

	</table>
	<div class="span-6"><a href="">add impediment</a></div>
	<div class="span-6 last"><a href="">all impediments(32)</a></div>
	<br />
	<br />-->


	<h3>Histories</h3>
	<ul class="histories"> 
		<% @sprint.histories.each do |history| %>
			<li class="history">
				<p><%= history.text %> <%= link_to 'view', history %> <%= link_to 'edit', edit_history_path(history) %></p>

				<% if ( history.impediment.size > 0 ) : %>
				<ul class="impediments">
					<li></li>
				</ul>
			
				<% end %>
				
				<br />
				
				
				<div class="data">
					<span class="business_value"><%= history.business_value %></span>
					<span class="complexity"><%= history.complexity %></span>
					<div class="status">
						&nbsp; <%=history.status%>		
					</div>
				</div>					

			</li>
		<% end %>
	</ul>
	
	<div class="span-6 last">
		<%= link_to 'add history', "/history/new?sprint_id=#{@sprint.id}" %>
		<!--<a href="/stories">all histories</a>--></div>
	


</div>

<!-- column-2 -->
<div class="span-12 last">
	<div>	
		<img class="span-12 graph" src="/graph/burndown/<%= @sprint.id.to_s %>" />
		
		<br /><br /><br />
		<!--
		<img class="span-12 graph" src="http://localhost:3000/graph/burndown/1" />
		-->
	</div>
</div>
